package com.woniu.cq.medical.service.impl;

import com.woniu.cq.medical.controller.form.ActInfoForm;
import com.woniu.cq.medical.dao.mymapper.My_ActOrderInfoMapper;
import com.woniu.cq.medical.entity.ActOrderInfo;
import com.woniu.cq.medical.dao.ActOrderInfoMapper;
import com.woniu.cq.medical.service.IActOrderInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-10
 */
@Service
public class ActOrderInfoServiceImpl extends ServiceImpl<ActOrderInfoMapper, ActOrderInfo> implements IActOrderInfoService {

    @Autowired
    private My_ActOrderInfoMapper my_actOrderInfoMapper;
    @Override
    public List<ActInfoForm> selectPatientByIdCard(String patientIdCard, String caseId) {
        if(caseId!=null){
            List<ActInfoForm> actInfoForm = my_actOrderInfoMapper.selectPatientByIdCard(patientIdCard, caseId);
            return actInfoForm;
        }else{
            List<ActInfoForm> actInfoForm = my_actOrderInfoMapper.selectPatientByIdCard1(patientIdCard);
            return actInfoForm;
        }


    }
}
